package com.hk.security.authentication;

import dubhe.token.core.model.UserInfo;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.SuperBuilder;

/**
 * @author miaoj
 */
@SuperBuilder
@Getter
@Setter
public class ProductUserInfo extends UserInfo {

    private static final long serialVersionUID = -6335726601109350150L;

    private String lastOpened;

    private Integer type;

    public boolean isProjectUser() {
        return type == 2;
    }

    public boolean isAdminUser() {
        return type == 1;
    }
}
